package com.tuozixuan.redisson;

import org.redisson.Redisson;
import org.redisson.api.RedissonClient;
import org.redisson.config.Config;
import org.redisson.config.SingleServerConfig;

public class RedissonClientUtils {

	public static RedissonClient get() {
		Config config = new Config();
		SingleServerConfig singleServerConfig = config.useSingleServer();
//		singleServerConfig.setAddress("redis://192.168.80.97:6379");
//		singleServerConfig.setPassword("Jkdsaik8248");
		singleServerConfig.setAddress("redis://192.168.101.81:6379");
		return Redisson.create(config);
	}
}
